﻿Imports DTO
Imports DAO
Public Class CustomerBUS
    Private customerDao As New CustomerDAO()
    Public Function GetCustomerIdMax() As Integer
        Return customerDao.GetCustomerIdMax()
    End Function
    Public Sub InsertCustomer(ByVal fName As String, ByVal lName As String, ByVal phone As String, ByVal passPort As String)
        customerDao.InsertCustomer(fName, lName, phone, passPort)
    End Sub
    Public Function GetCustomerByCustomerId(ByVal customerId As Integer) As CustomerDTO
        Return customerDao.GetCustomerByCustomerId(customerId)
    End Function
    Public Sub Update(ByVal customerId As Integer, ByVal fName As String, ByVal lName As String, ByVal phone As String, ByVal passPort As String)
        customerDao.Update(customerId, fName, lName, phone, passPort)
    End Sub
End Class
